package com.mocha.nezha.graph.example;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * @author songkui
 * @since 2024/3/19 20:28
 */
@Getter
@Setter
@Component
@ConfigurationProperties(prefix = "mocha")
public class GraphProperties {

    private final List<Graph> graphs = new ArrayList<>();
    @Getter
    @Setter
    @NoArgsConstructor
    @AllArgsConstructor
    public static class Graph {

        private String graphUrl;
        private String graphName;
        private String parkCode;

    }

}
